clear
set more off
set mem 40m
#delimit ;

cd "/Users/ssaiegh/Files/Mac/Argentina/Elegi/AMPS/";


use "data_LAPS.dta";


regress lopsided gov incgober pork relative2, cluster(party);


regress lopsided gov incgober pork c.median_voter##i.personal2 relative2, cluster(party);


margins, dydx(median_voter) at(personal2=(0 (1) 1)) vsquish;
margins, dydx(median_voter) vsquish;

regress close gov incgober pork c.median_voter##i.personal2 relative2, cluster(party);


margins, dydx(median_voter) at(personal2=(0 (1) 1)) vsquish;
margins, dydx(median_voter) vsquish;

regress pc1 gov incgober pork relative2, cluster(party);

regress pc1 gov incgober pork c.median_voter##i.personal2 relative2, cluster(party);


margins, dydx(median_voter) at(personal2=(0 (1) 1)) vsquish;
margins, dydx(median_voter) vsquish;

